<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>笔记本</title>
    <h1>
        笔记本
    </h1>
    <style>
        h1{
            text-align: center;
        }
        #record{
            height: 300px; 
            width:300px;
            text-align:left;
            margin: 0 auto;
        }
    </style>
</head>
<body>
    <form>
        <div style="display:block;width: 100%;text-align: center;"><textarea type="text" id="record"></textarea></br></div>
        <div id="a2" style="display: block;text-align: center;"></div>
    </form>
    <script>
        function cord(){
            var a=document.getElementById('record').value
        document.getElementById('a2').innerHTML=a
    }
    </script>
    <button onclick="cord()" style="display: block;text-align: center;">que</button>
</body>
</html>